package com.ruyuan.seckilling.activity.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Objects;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityModifyRequest {

    private Long activityId;

    private String activityName;

    private Date showTime;

    private Date startTime;

    private Date endTime;

    public String validateParams() {
        if (Objects.isNull(activityId)) {
            return "活动id不能为空";
        }
        return null;
    }
}
